use chrono::NaiveDateTime;
use salvo::prelude::*;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Extractible, Debug, ToSchema)]
#[salvo(extract(default_source(from = "body", parse = "json")))]
pub struct User {
    pub tenant_id: i64,
    #[salvo(extract(source(from = "param")))]
    pub id: Option<String>,
    pub username: Option<String>,
    pub password: Option<String>,
    pub create_by: Option<String>,
    pub create_time: Option<NaiveDateTime>,
    pub update_by: Option<String>,
    pub update_time: Option<NaiveDateTime>,
    pub avatar: Option<String>, 
    pub introduction: Option<String>,
}



pub mod rbac;
pub mod user;
